{% extends "SalarySysMenu/Main.html" %}
{% load staticfiles %}
{% block CSSAnotherhead %}
  <!-- DataTables -->
  <link rel="stylesheet" href="{% static 'bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css' %}">
{% endblock %}
{% block bodyhead %}
<body class="hold-transition skin-purple-light sidebar-mini" onload="initPage()">

  {% endblock %}
{% block MyReoprtDetails %}
        <li class="active"><a href="{% url 'GZGL:MyReportDetails' %}"><i class="glyphicon glyphicon-align-left"></i> <span> 我的申报单</span></a></li>
        {% endblock %} 

        {% block content %}
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        我的申报单
        <small>申报单</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
        <li class="active">Here</li>
      </ol>

    </section>
    <!-- Main content -->
    <section class="content container-fluid">

        <!--------------------------
          | Your Page Content Here |
          -------------------------->
          <div class="row">
            {% include 'SalarySysMenu/reference/ProfileTask.html' %}

              <div class="col-md-9">
                <div class="nav-tabs-custom">
  
                  <ul class="nav nav-tabs">
                    <li class="active"><a href="#业绩申报单" data-toggle="tab">业绩申报单</a></li>
  
                    <li><a href="#668" data-toggle="tab">工资申报单</a></li>
                    <li><a href="#669" data-toggle="tab">考勤申报单</a></li>
                    <li><a href="#670" data-toggle="tab">其他申报单</a></li>

                  </ul>
  
                  <div class="tab-content">
                    <div class="active tab-pane" id="业绩申报单">

                        <div class="box">
                            <div class="box-header">
                              <h3 class="box-title">{{here.staff_name}}的业绩申报单</h3>
                            </div>
                            <!-- /.box-header -->
                            <div class="box-body">
                              <table id="example1" class="table table-bordered table-striped">
                                <thead>
                                <tr>
                                  <th>申报代码</th>
                                  <th>业务名称</th>
                                  <th>状   态</th>
                                  <th>提交日期</th>
                                  <th>业务类型</th>
                                  <th>员工姓名</th>
                                  <th>员工 ID</th>
                                  
                                  <th>详   情</th>
      
                                </tr>
                                </thead>
                                {% for work in ReportWork_list %} 
                              
                                  <tbody>
                                  <tr>
                                    <td>{{work.id}}</td>                                    
                                    <td>{{work.ReportWorking_name}}</td>
                                    <td>{% if work.FinishBack == 1 %} 
                                      <label class="control-label" style="color: #f39c12;" >
                                          <i class="fa fa-warning"></i> 待批复 </label>
                                    {% elif work.FinishBack == 0 %}
                                    <label class="control-label" style="color: #00a65a;" >
                                    <i class="fa fa-check"></i>已通过</label>
                                    {% elif work.FinishBack == 2 %}
                                    <label class="control-label" style="color: #6A6F69;" >
                                      <i class="fa fa-undo"></i>已撤销</label>
                                      {% elif work.FinishBack == 3 %}
                                      <label class="control-label" style="color: #337ab7;" >
                                        <i class="fa fa-pencil"></i>编辑中</label>
                                        {% elif work.FinishBack == 4 %}
                                    <label class="control-label" style="color: #dd4b39;" >
                                  <i class="fa fa-times"></i> 已驳回 </label>
                                    {% endif %} </td>
                                    <td>{{work.Report_Time}}</td>
                                    <td>{{work.ReportWorking_type}}</td>
                                    <td>{{work.ReportWorking_Manname}}</td>
                                    <td>{{work.ReportWorking_id}}</td>

                                    <td>
                                        <form action="{% url 'GZGL:WatchReportWorking' %}" method="POST">
                                            {% csrf_token %}
                                        <input type="hidden" name="idd" class="form-control" id="examplename" value="{{work.id}}" >
                                        <button type="submit" class="btn btn-block btn-primary btn-sm ">查看</button>
                                        </form>

                                    </td>
                                  </tr>
                                  </tbody>
                                  {% empty %}

                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                <td><label class="control-label" style="color: #dd4b39; text-align: center;" >
                                <i class="fa fa-times"></i> 抱歉，您尚未提交业绩申报单！</label></td>
                                <td></td>
                                {% endfor %} 
                                <tfoot>
                                  <tr>
                                      <th>申报代码</th>
                                      <th>业务名称</th>
                                      <th>状   态</th>
                                      <th>提交日期</th>
                                      <th>业务类型</th>
                                      <th>员工姓名</th>
                                      <th>员工 ID</th>
                                     
                                      <th>详   情</th>
                                  </tr>
                                </tfoot>
                              </table>
                            </div>
                            <!-- /.box-body -->
                          </div>
                     
                    </div>
                    <!-- /.tab-pane -->
      
                    <div class="tab-pane" id="668">
                        <div class="box">
                            <div class="box-header">
                              <h3 class="box-title">{{here.staff_name}}的工资申报单</h3>
                            </div>
                            <!-- /.box-header -->
                            <div class="box-body">
                              <table id="example1" class="table table-bordered table-striped">
                                <thead>
                                <tr>
                                  <th>申报代码</th>
                                  <th>异常类型</th>
                                  
                                  <th>状   态</th>
                                  <th>提交日期</th>
                                  <th>异常月份</th>
                                  <th>业务类型</th>
                                  <th>员工姓名</th>
                                  <th>员工 ID</th>
                                  <th>详   情</th>
    
                                </tr>
                                </thead>
                                {% for sa in ReportSalary_list %} 
                              
                                  <tbody>
                                  <tr>
                                      <td>{{sa.id}}</td>
                                      <td>{{sa.ReportSalary_type}}</td>
                                      <td>{% if sa.FinishBack == 1 %} 
                                        <label class="control-label" style="color: #f39c12;" >
                                            <i class="fa fa-warning"></i> 待批复 </label>
                                      {% elif sa.FinishBack == 0 %}
                                      <label class="control-label" style="color: #00a65a;" >
                                      <i class="fa fa-check"></i>已通过</label>
                                      {% elif sa.FinishBack == 2 %}
                                      <label class="control-label" style="color: #6A6F69;" >
                                        <i class="fa fa-undo"></i>已撤销</label>
                                        {% elif sa.FinishBack == 3 %}
                                        <label class="control-label" style="color: #337ab7;" >
                                          <i class="fa fa-pencil"></i>编辑中</label>
                                          {% elif sa.FinishBack == 4 %} 
                                      <label class="control-label" style="color: #dd4b39;" >
                                          <i class="fa fa-times"></i> 已驳回 </label>
                                      {% endif %} </td>
                                      <td>{{sa.Report_Time}}</td>
                                    
                                     
                                    
                                    <td>{{sa.ReportSalary_Date}}</td>
                                    <td>{{sa.ReportSalary_name}}</td>
                                    <td>{{sa.ReportSalary_Manname}}</td>
                                    <td>{{sa.ReportSalary_id}}</td>
                                    <td>
                                        <form action="{% url 'GZGL:WatchReportSalary' %}" method="POST">
                                            {% csrf_token %}
                                        <input type="hidden" name="idd2" class="form-control" id="examplename" value="{{sa.id}}" >
                                        <button type="submit" class="btn btn-block btn-primary btn-sm ">查看</button>
                                        </form>
                                    </td>
                                  </tr>
                                  </tbody>
                                  {% empty %}
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                <td><label class="control-label" style="color: #dd4b39; text-align: center;" >
                                <i class="fa fa-times"></i> 抱歉，您尚未提交工资申报单！</label></td>
                                <td></td>
                                {% endfor %} 
                                <tfoot>
                                  <tr>
                                    <th>申报代码</th>
                                    
                                    <th>异常类型</th>
                                    <th>状   态</th>
                                    <th>提交日期</th>
                                    
                                    <th>异常月份</th>
                                    <th>业务类型</th>
                                    <th>员工姓名</th>
                                    <th>员工 ID</th>
                                    <th>详   情</th>
                                  </tr>
                                </tfoot>
                              </table>
                            </div>
                      </div>
                    </div>
                    <!-- /.tab-pane -->
                    <div class="tab-pane" id="669">
                        <div class="box">
                            <div class="box-header">
                              <h3 class="box-title">{{here.staff_name}}的考勤申报单</h3>
                            </div>
                            <!-- /.box-header -->
                            <div class="box-body">
                              <table id="example1" class="table table-bordered table-striped">
                                <thead>
                                <tr>
                                  <th>申报代码</th>
                                  
                                  <th>考勤异常类型</th>
                                  <th>状   态</th>
                                  <th>提交日期</th>
                                  <th>业务类型</th>
                                  <th>员工姓名</th>
                                  <th>员工 ID</th>
                                  
                                  <th>考勤异常日期</th>
                                  
                                  <th>详   情</th>
    
                                </tr>
                                </thead>
                                {% for resign in ReportSign_list %} 
                              
                                  <tbody>
                                  <tr>
                                    <td>{{resign.id}}</td>
                                    <td>{{resign.ReportSign_name}}</td>
                                    <td>{% if resign.FinishBack == 1 %} 
                                      <label class="control-label" style="color: #f39c12;" >
                                          <i class="fa fa-warning"></i> 待批复 </label>
                                    {% elif resign.FinishBack == 0 %}
                                    <label class="control-label" style="color: #00a65a;" >
                                    <i class="fa fa-check"></i>已通过</label>
                                    {% elif resign.FinishBack == 2 %}
                                    <label class="control-label" style="color: #6A6F69;" >
                                      <i class="fa fa-undo"></i>已撤销</label>
                                      {% elif resign.FinishBack == 3 %}
                                      <label class="control-label" style="color: #337ab7;" >
                                        <i class="fa fa-pencil"></i>编辑中</label>
                                        {% elif resign.FinishBack == 4 %}
                                    <label class="control-label" style="color: #dd4b39;" >
                                        <i class="fa fa-times"></i> 已驳回 </label>
                                    {% endif %} </td>
                                    <td>{{resign.Report_Time}}</td>
                                    <td>{{resign.ReportSign_type}}</td>
                                    <td>{{resign.ReportSign_Manname}}</td>
                                    <td>{{resign.ReportSign_id}}</td>
                                   
                                    <td>{{resign.ReportSign_Date}}</td>
                                   
                                    <td>
                                        <form action="{% url 'GZGL:WatchReportSign' %}" method="POST">
                                            {% csrf_token %}
                                        <input type="hidden" name="idd3" class="form-control" id="examplename" value="{{resign.id}}" >
                                        <button type="submit" class="btn btn-block btn-primary btn-sm ">查看</button>
                                        </form>
                                    </td>
                                  </tr>
                                  </tbody>
                                  {% empty %}
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                <td><label class="control-label" style="color: #dd4b39; text-align: center;" >
                                <i class="fa fa-times"></i> 抱歉，您尚未提交考勤申报单！</label></td>
                                <td></td>
                                {% endfor %} 
                                <tfoot>
                                  <tr>
                                    <th>申报代码</th>
                                  
                                    <th>考勤异常类型</th>
                                    <th>状   态</th>
                                    <th>提交日期</th>
                                    <th>业务类型</th>
                                    <th>员工姓名</th>
                                    <th>员工 ID</th>
                                    
                                    <th>考勤异常日期</th>
                                    
                                    <th>详   情</th>
                                  </tr>
                                </tfoot>
                              </table>
                            </div>
                      </div>
                    </div>
                    <!-- /.tab-pane -->
                    <div class="tab-pane" id="670">
                      
                        <div class="box">
                            <div class="box-header">
                              <h3 class="box-title">{{here.staff_name}}的其他申报单</h3>
                            </div>
                            
                            <!-- /.box-header -->
                            <div class="box-body">
                              <table id="example1" class="table table-bordered table-striped">
                                <thead>
                                <tr>
                                    <th>申报代码</th>
                                    <th>异常名称</th>
                                    <th>状   态</th>
                                  <th>提交日期</th>
                                  <th>业务类型</th>
                                  <th>员工姓名</th>
                                  <th>员工 ID</th>
                                  
                                  <th>异常日期</th>
                                  
                                  <th>详   情</th>
    
                                </tr>
                                </thead>
                                {% for ot in ReportOther_list %} 

                                  <tbody>
                                  <tr>
                                    <td>{{ot.id}}</td>
                                    <td>{{ot.ReportOther_name}}</td>
                                    <td>{% if ot.FinishBack == 1 %} 
                                      <label class="control-label" style="color: #f39c12;" >
                                          <i class="fa fa-warning"></i> 待批复 </label>
                                    {% elif ot.FinishBack == 0 %}
                                    <label class="control-label" style="color: #00a65a;" >
                                    <i class="fa fa-check"></i>已通过</label>
                                    {% elif ot.FinishBack == 2 %}
                                    <label class="control-label" style="color: #6A6F69;" >
                                      <i class="fa fa-undo"></i>已撤销</label>
                                      {% elif ot.FinishBack == 3 %}
                                      <label class="control-label" style="color: #337ab7;" >
                                        <i class="fa fa-pencil"></i>编辑中</label>
                                        {% elif ot.FinishBack == 4 %}
                                    <label class="control-label" style="color: #dd4b39;" >
                                        <i class="fa fa-times"></i> 已驳回 </label>
                                    {% endif %} </td>
                                    <td>{{ot.Report_Time}}</td>
                                    <td>{{ot.ReportOther_type}}</td>
                                    <td>{{ot.ReportOther_Manname}}</td>
                                    <td>{{ot.ReportOther_id}}</td>
                                    
                                    <td>{{ot.ReportOther_Date}}</td>
                                    
                                    <td>
                                      <form action="{% url 'GZGL:WatchReportOther' %}" method="POST">
                                        {% csrf_token %}
                                    <input type="hidden" name="idd4" class="form-control" id="examplename" value="{{ot.id}}" >
                                    <button type="submit" class="btn btn-block btn-primary btn-sm ">查看</button>
                                    </form>
                                  </td>
                                  </tr>
                                  </tbody>
                                   {% empty %}
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                   <td></td>
                                <td><label class="control-label" style="color: #dd4b39; text-align: center;" >
                                <i class="fa fa-times"></i> 抱歉，您尚未提交其他类型申报单！</label></td>
                                <td></td>
                                {% endfor %} 
                                <tfoot>
                                  <tr>
                                    <th>申报代码</th>
                                    <th>异常名称</th>
                                    <th>状   态</th>
                                  <th>提交日期</th>
                                  <th>业务类型</th>
                                  <th>员工姓名</th>
                                  <th>员工 ID</th>
                                  
                                  <th>异常日期</th>
                                  
                                  <th>详   情</th>
                                  </tr>
                                </tfoot>
                              </table>
                            </div>
                           
                              
                            
                      </div>
                      
                      </div>
                      <!-- /.tab-pane -->
                  </div>
                  <!-- /.tab-content -->
                </div>
                <!-- /.nav-tabs-custom -->
              </div>
            </div>
            
      </section>
      <!-- /.content -->

  </div>
  <!-- /.content-wrapper -->
        {% endblock %}
        {% block JSAnotherFile %}
  <!-- SlimScroll -->
<script src="{% static 'bower_components/jquery-slimscroll/jquery.slimscroll.min.js'%}"></script>
<!-- FastClick -->
<script src="{% static 'bower_components/fastclick/lib/fastclick.js'%}"></script>      
<!-- DataTables -->
<script src="{% static 'bower_components/datatables.net/js/jquery.dataTables.min.js'%}"></script>
<script src="{% static 'bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js'%}"></script>

{% endblock %}